Optimal. Leaf size=135 \[ -\frac{\log \left (x^2-\sqrt{2-\sqrt{3}} x+1\right )}{2 \sqrt{2}}+\frac{\log \left (x^2+\sqrt{2-\sqrt{3}} x+1\right )}{2 \sqrt{2}}-\frac{\tan ^{-1}\left (\frac{\sqrt{2+\sqrt{3}}-2 x}{\sqrt{2-\sqrt{3}}}\right )}{\sqrt{2}}+\frac{\tan ^{-1}\left (\frac{2 x+\sqrt{2+\sqrt{3}}}{\sqrt{2-\sqrt{3}}}\right )}{\sqrt{2}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.250058, antiderivative size = 135, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24 \[ -\frac{\log \left (x^2-\sqrt{2-\sqrt{3}} x+1\right )}{2 \sqrt{2}}+\frac{\log \left (x^2+\sqrt{2-\sqrt{3}} x+1\right )}{2 \sqrt{2}}-\frac{\tan ^{-1}\left (\frac{\sqrt{2+\sqrt{3}}-2 x}{\sqrt{2-\sqrt{3}}}\right )}{\sqrt{2}}+\frac{\tan ^{-1}\left (\frac{2 x+\sqrt{2+\sqrt{3}}}{\sqrt{2-\sqrt{3}}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In] Int[(-1 + Sqrt[3] + 2*x^4)/(1 - x^4 + x^8),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 51.7622, size = 202, normalized size = 1.5 \[ \frac{\left (- \sqrt{3} + 1\right ) \log{\left (x^{2} - x \sqrt{- \sqrt{3} + 2} + 1 \right )}}{4 \sqrt{- \sqrt{3} + 2}} - \frac{\left (- \sqrt{3} + 1\right ) \log{\left (x^{2} + x \sqrt{- \sqrt{3} + 2} + 1 \right )}}{4 \sqrt{- \sqrt{3} + 2}} + \frac{\sqrt{2} \left (- \sqrt{3} + 3\right )^{2} \operatorname{atan}{\left (\frac{\sqrt{6} \left (x \left (- \frac{\sqrt{3}}{3} + 1\right ) - \frac{\left (-3 + \sqrt{3}\right ) \sqrt{\sqrt{3} + 2}}{6}\right )}{- \sqrt{3} + 2} \right )}}{12 \left (- \sqrt{3} + 2\right )} + \frac{\sqrt{2} \left (- \sqrt{3} + 3\right )^{2} \operatorname{atan}{\left (\frac{\sqrt{6} \left (x \left (- \frac{\sqrt{3}}{3} + 1\right ) + \frac{\left (-3 + \sqrt{3}\right ) \sqrt{\sqrt{3} + 2}}{6}\right )}{- \sqrt{3} + 2} \right )}}{12 \left (- \sqrt{3} + 2\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((-1+2*x**4+3**(1/2))/(x**8-x**4+1),x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 0.0522052, size = 71, normalized size = 0.53 \[ \frac{1}{4} \text{RootSum}\left [\text{$\#$1}^8-\text{$\#$1}^4+1\&,\frac{2 \text{$\#$1}^4 \log (x-\text{$\#$1})+\sqrt{3} \log (x-\text{$\#$1})-\log (x-\text{$\#$1})}{2 \text{$\#$1}^7-\text{$\#$1}^3}\&\right ] \]
Antiderivative was successfully verified.
[In] Integrate[(-1 + Sqrt[3] + 2*x^4)/(1 - x^4 + x^8),x]
[Out]
_______________________________________________________________________________________
Maple [C] time = 0.076, size = 47, normalized size = 0.4 \[{\frac{1}{4}\sum _{{\it \_R}={\it RootOf} \left ({{\it \_Z}}^{8}-{{\it \_Z}}^{4}+1 \right ) }{\frac{ \left ( -1+2\,{{\it \_R}}^{4}+\sqrt{3} \right ) \ln \left ( x-{\it \_R} \right ) }{2\,{{\it \_R}}^{7}-{{\it \_R}}^{3}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((-1+2*x^4+3^(1/2))/(x^8-x^4+1),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{2 \, x^{4} + \sqrt{3} - 1}{x^{8} - x^{4} + 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*x^4 + sqrt(3) - 1)/(x^8 - x^4 + 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*x^4 + sqrt(3) - 1)/(x^8 - x^4 + 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 3.84787, size = 136, normalized size = 1.01 \[ \frac{\sqrt{2} \left (2 \operatorname{atan}{\left (\frac{x \left (\sqrt{6} + 2 \sqrt{2}\right )}{1 + \sqrt{3}} \right )} + 2 \operatorname{atan}{\left (\frac{x^{3} \left (\sqrt{6} + 2 \sqrt{2}\right )}{1 + \sqrt{3}} - \sqrt{2} x \right )}\right )}{4} - \frac{\sqrt{2} \log{\left (x^{2} - \frac{\sqrt{2} x \left (2 + 2 \sqrt{3}\right )}{4 \left (\sqrt{3} + 2\right )} + 1 \right )}}{4} + \frac{\sqrt{2} \log{\left (x^{2} + \frac{\sqrt{2} x \left (2 + 2 \sqrt{3}\right )}{4 \left (\sqrt{3} + 2\right )} + 1 \right )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((-1+2*x**4+3**(1/2))/(x**8-x**4+1),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.291177, size = 144, normalized size = 1.07 \[ \frac{1}{2} \, \sqrt{2} \arctan \left (\frac{4 \, x + \sqrt{6} + \sqrt{2}}{\sqrt{6} - \sqrt{2}}\right ) + \frac{1}{2} \, \sqrt{2} \arctan \left (\frac{4 \, x - \sqrt{6} - \sqrt{2}}{\sqrt{6} - \sqrt{2}}\right ) + \frac{1}{4} \, \sqrt{2}{\rm ln}\left (x^{2} + \frac{1}{2} \, x{\left (\sqrt{6} - \sqrt{2}\right )} + 1\right ) - \frac{1}{4} \, \sqrt{2}{\rm ln}\left (x^{2} - \frac{1}{2} \, x{\left (\sqrt{6} - \sqrt{2}\right )} + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((2*x^4 + sqrt(3) - 1)/(x^8 - x^4 + 1),x, algorithm="giac")
[Out]